package com.yuanrui.subject.application.convert;

import com.yuanrui.subject.application.dto.SubjectInfoDTO;
import com.yuanrui.subject.domain.entity.SubjectInfoBO;
import com.yuanrui.subject.domain.entity.SubjectOptionBO;
import com.yuanrui.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)DTO转换器
 */
@Mapper
public interface SubjectInfoDTOConverter {

    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);

    // SubjectLabelDTO toDTO(SubjectLabelBo subjectLabelBo);
    List<SubjectInfoDTO> toDTOList(List<SubjectInfoBO> subjectInfoBOList);

    // SubjectLabelBo toBo(SubjectLabelDTO subjectLabelDTO);
    SubjectInfoBO convertToBo(SubjectInfoDTO subjectInfoDTO);

    // SubjectLabelBo toBo(SubjectLabelDTO subjectLabelDTO);
    SubjectInfoDTO convertBoDto(SubjectInfoBO subjectInfoBO);

}
